<!-- $Id: goods_list.htm 17126 2010-04-23 10:30:26Z liuhui $ -->

{if $full_page}
{include file="pageheader.htm"}
{insert_scripts files="../js/utils.js,listtable.js"}



<!-- 售后订单搜索 -->
<!-- $Id: goods_search.htm 16790 2009-11-10 08:56:15Z wangleisvn $ -->
<div class="form-div">
  <form action="javascript:searchGoods()" name="searchForm">
    <img src="images/icon_search.gif" width="26" height="22" border="0" alt="SEARCH" />
    
    
    订单号<input type="text" name="order_sn">
    退款状态
    <select name="refund_stat">
      <option value="">全部</option>
      {html_options options=$refund_stat}
    </select>
  
  
  

    <input type="submit" value="{$lang.button_search}" class="button" />
  </form>
</div>

{literal}
<script language="JavaScript">
    function searchGoods()
    {

        listTable.filter['order_sn'] = Utils.trim(document.forms['searchForm'].elements['order_sn'].value);
        listTable.filter['service_type'] = Utils.trim(document.forms['searchForm'].elements['refund_stat'].value);
        listTable.filter['page'] = 1;
        listTable.loadList();
    }
</script>
{/literal}
<!-- 售后订单列表 -->
<form method="post" action="" name="listForm" onsubmit="return confirmSubmit(this)">
  <!-- start goods list -->
  <div class="list-div" id="listDiv">
{/if}
<table cellpadding="3" cellspacing="1">
  <tr>
    <th>ID</th>
    <th>订单号</th>
    <th>退款状态</th>
    <th>申请人</th>
    <th>申请时间</th>
    <th>确认时间</th>
    <th>申请原因</th>
    <th>退款金额</th>
    <th>退款人支付宝账号</th>
    <th>操作</th>

  </tr>
  {foreach from=$refund_list item=refund_list}
  <tr>

    <td align="center">{$refund_list.service_id}</td>
    <td align="center">{$refund_list.order_sn}</td>
    <td align="center">{$lang[rt][$refund_list.refund_stat]}</td>
    <td align="center">{$refund_list.handle_user}</td>
    <td align="center">{$refund_list.add_time}</td>
    <td align="center">{$refund_list.confirm_time}</td>
    <td align="center">{$refund_list.refund_reason}</td>
    <td align="center">{$refund_list.refund_money}</td>
    <td align="center">{$refund_list.payment_num}</td>
    <td align="center">
      {if $refund_list.refund_stat eq 1}
      <a href="refund.php?act=confirm_refund&refund_id={$refund_list.refund_id}">确认退款</a>
      {/if }
      {if $refund_list.refund_stat eq 2}
      <a>已退款</a>
      {/if }
    </td>
  </tr>
  {foreachelse}
  <tr><td class="no-records" colspan="10">{$lang.no_records}</td></tr>
  {/foreach}
</table>
<!-- end goods list -->

<!-- 分页 -->
<table id="page-table" cellspacing="0">
  <tr>
    <td align="right" nowrap="true">
    {include file="page.htm"}
    </td>
  </tr>
</table>


</div>


</form>

<script type="text/javascript">
  listTable.recordCount = {$record_count};
  listTable.pageCount = {$page_count};
  listTable.query = "refund_query";
  {foreach from=$filter item=item key=key}
  listTable.filter.{$key} = '{$item}';
  {/foreach}
</script>

